package com.example.carrierapp.ui.main.goodssource.details

import com.example.carrierapp.base.BaseView
import com.example.carrierapp.viewmodel.itemmodel.ItemGoodsSourceModel
import com.example.carrierapp.viewmodel.viewmodel.GoodsSourceDetailsModel

class GoodsSourceDetailsContract {


    interface Presenter {
        fun fetchGoodsSourceDetails(id: Int,lineId: Int)
        fun fetchGoodsRecordDetails(id: Int,lineId: Int)
        fun doBid(lines: MutableList<ItemGoodsSourceModel>?)
    }

    interface View : BaseView {
        fun onFetchSuccess(rows: GoodsSourceDetailsModel)
        fun onFetchError()

        fun onBidSuccess()
        fun onBidError()
    }
}
